<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>gmime-iconv-utils: GMime 3.0 Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="GMime 3.0 Reference Manual">
<link rel="up" href="core.html" title="Part III. GMime Core Reference">
<link rel="prev" href="gmime-gmime-iconv.html" title="gmime-iconv">
<link rel="next" href="gmime-gmime-encodings.html" title="gmime-encodings">
<meta name="generator" content="GTK-Doc V1.32 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#gmime-gmime-iconv-utils.description" class="shortcut">Description</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="core.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="gmime-gmime-iconv.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="gmime-gmime-encodings.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="gmime-gmime-iconv-utils"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gmime-gmime-iconv-utils.top_of_page"></a>gmime-iconv-utils</span></h2>
<p>gmime-iconv-utils — High-level routines for converting text from one charset to another</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="gmime-gmime-iconv-utils.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_proto_type">
<col class="functions_proto_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<span class="returnvalue">char</span> *
</td>
<td class="function_name">
<a class="link" href="gmime-gmime-iconv-utils.html#g-mime-iconv-strdup" title="g_mime_iconv_strdup ()">g_mime_iconv_strdup</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">char</span> *
</td>
<td class="function_name">
<a class="link" href="gmime-gmime-iconv-utils.html#g-mime-iconv-strndup" title="g_mime_iconv_strndup ()">g_mime_iconv_strndup</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">char</span> *
</td>
<td class="function_name">
<a class="link" href="gmime-gmime-iconv-utils.html#g-mime-iconv-utf8-to-locale" title="g_mime_iconv_utf8_to_locale ()">g_mime_iconv_utf8_to_locale</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">char</span> *
</td>
<td class="function_name">
<a class="link" href="gmime-gmime-iconv-utils.html#g-mime-iconv-utf8-to-locale-length" title="g_mime_iconv_utf8_to_locale_length ()">g_mime_iconv_utf8_to_locale_length</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">char</span> *
</td>
<td class="function_name">
<a class="link" href="gmime-gmime-iconv-utils.html#g-mime-iconv-locale-to-utf8" title="g_mime_iconv_locale_to_utf8 ()">g_mime_iconv_locale_to_utf8</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">char</span> *
</td>
<td class="function_name">
<a class="link" href="gmime-gmime-iconv-utils.html#g-mime-iconv-locale-to-utf8-length" title="g_mime_iconv_locale_to_utf8_length ()">g_mime_iconv_locale_to_utf8_length</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="gmime-gmime-iconv-utils.description"></a><h2>Description</h2>
<p>Charset conversion utility functions.</p>
</div>
<div class="refsect1">
<a name="gmime-gmime-iconv-utils.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="g-mime-iconv-strdup"></a><h3>g_mime_iconv_strdup ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> *
g_mime_iconv_strdup (<em class="parameter"><code><span class="type">iconv_t</span> cd</code></em>,
                     <em class="parameter"><code>const <span class="type">char</span> *str</code></em>);</pre>
<p>Allocates a new string buffer containing <em class="parameter"><code>str</code></em>
 converted to the
destination charset described in <em class="parameter"><code>cd</code></em>
.</p>
<p><span class="annotation">[<a href="http://foldoc.org/skip"><span class="acronym">skip</span></a>]</span></p>
<div class="refsect3">
<a name="g-mime-iconv-strdup.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cd</p></td>
<td class="parameter_description"><p>conversion descriptor</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>str</p></td>
<td class="parameter_description"><p>string in source charset</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="g-mime-iconv-strdup.returns"></a><h4>Returns</h4>
<p> a new string buffer containing the original string
converted to the new charset.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="g-mime-iconv-strndup"></a><h3>g_mime_iconv_strndup ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> *
g_mime_iconv_strndup (<em class="parameter"><code><span class="type">iconv_t</span> cd</code></em>,
                      <em class="parameter"><code>const <span class="type">char</span> *str</code></em>,
                      <em class="parameter"><code><span class="type">size_t</span> n</code></em>);</pre>
<p>Allocates a new string buffer containing the first <em class="parameter"><code>n</code></em>
 bytes of <em class="parameter"><code>str</code></em>

converted to the destination charset as described by the conversion
descriptor <em class="parameter"><code>cd</code></em>
.</p>
<p><span class="annotation">[<a href="http://foldoc.org/skip"><span class="acronym">skip</span></a>]</span></p>
<div class="refsect3">
<a name="g-mime-iconv-strndup.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cd</p></td>
<td class="parameter_description"><p>conversion descriptor</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>str</p></td>
<td class="parameter_description"><p>string in source charset</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>n</p></td>
<td class="parameter_description"><p>number of bytes to convert</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="g-mime-iconv-strndup.returns"></a><h4>Returns</h4>
<p> a new string buffer containing the first <em class="parameter"><code>n</code></em>
bytes of
<em class="parameter"><code>str</code></em>
converted to the destination charset as described by the
conversion descriptor <em class="parameter"><code>cd</code></em>
.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="g-mime-iconv-utf8-to-locale"></a><h3>g_mime_iconv_utf8_to_locale ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> *
g_mime_iconv_utf8_to_locale (<em class="parameter"><code>const <span class="type">char</span> *str</code></em>);</pre>
<p>Allocates a new string buffer containing <em class="parameter"><code>str</code></em>
 converted to the
user's locale charset.</p>
<div class="refsect3">
<a name="g-mime-iconv-utf8-to-locale.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>str</p></td>
<td class="parameter_description"><p>string in UTF-8 charset</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="g-mime-iconv-utf8-to-locale.returns"></a><h4>Returns</h4>
<p> a new string buffer containing <em class="parameter"><code>str</code></em>
converted to the
user's locale charset.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="g-mime-iconv-utf8-to-locale-length"></a><h3>g_mime_iconv_utf8_to_locale_length ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> *
g_mime_iconv_utf8_to_locale_length (<em class="parameter"><code>const <span class="type">char</span> *str</code></em>,
                                    <em class="parameter"><code><span class="type">size_t</span> n</code></em>);</pre>
<p>Allocates a new string buffer containing the first <em class="parameter"><code>n</code></em>
 bytes of
<em class="parameter"><code>str</code></em>
 converted to the user's locale charset.</p>
<div class="refsect3">
<a name="g-mime-iconv-utf8-to-locale-length.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>str</p></td>
<td class="parameter_description"><p>string in UTF-8 charset</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>n</p></td>
<td class="parameter_description"><p>number of bytes to convert</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="g-mime-iconv-utf8-to-locale-length.returns"></a><h4>Returns</h4>
<p> a new string buffer containing the first <em class="parameter"><code>n</code></em>
bytes of
<em class="parameter"><code>str</code></em>
converted to the user's locale charset.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="g-mime-iconv-locale-to-utf8"></a><h3>g_mime_iconv_locale_to_utf8 ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> *
g_mime_iconv_locale_to_utf8 (<em class="parameter"><code>const <span class="type">char</span> *str</code></em>);</pre>
<p>Allocates a new string buffer containing <em class="parameter"><code>str</code></em>
 in UTF-8.</p>
<div class="refsect3">
<a name="g-mime-iconv-locale-to-utf8.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>str</p></td>
<td class="parameter_description"><p>string in locale charset</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="g-mime-iconv-locale-to-utf8.returns"></a><h4>Returns</h4>
<p> a new string buffer containing <em class="parameter"><code>str</code></em>
converted to UTF-8.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="g-mime-iconv-locale-to-utf8-length"></a><h3>g_mime_iconv_locale_to_utf8_length ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> *
g_mime_iconv_locale_to_utf8_length (<em class="parameter"><code>const <span class="type">char</span> *str</code></em>,
                                    <em class="parameter"><code><span class="type">size_t</span> n</code></em>);</pre>
<p>Allocates a new string buffer containing the first <em class="parameter"><code>n</code></em>
 bytes of
<em class="parameter"><code>str</code></em>
 converted to UTF-8.</p>
<div class="refsect3">
<a name="g-mime-iconv-locale-to-utf8-length.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>str</p></td>
<td class="parameter_description"><p>string in locale charset</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>n</p></td>
<td class="parameter_description"><p>number of bytes to convert</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="g-mime-iconv-locale-to-utf8-length.returns"></a><h4>Returns</h4>
<p> a new string buffer containing the first <em class="parameter"><code>n</code></em>
bytes of
<em class="parameter"><code>str</code></em>
converted to UTF-8.</p>
</div>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.32</div>
</body>
</html>